package com.zhentao.controller;


import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ICdzUserIncomeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mp
 * @since 2024-12-25
 */
@RestController
@RequestMapping("/user/api/user/balance/change")
public class CdzUserIncomeController {

    @Resource
    private ICdzUserIncomeService cdzUserIncomeService;

    @GetMapping("/list")
    public ResponseResult list(){
        return cdzUserIncomeService.select();
    }

    @GetMapping("/count")
    public ResponseResult count(){
        return cdzUserIncomeService.selectCount();
    }
}

